package Basic;

import java.util.regex.Pattern;

import javax.swing.JOptionPane;

public class RegularExpression {
	
	public static void main(String []args) {
		
		/*
		 * String string="8";
		 * 
		 * String str="[0-9]";
		 * 
		 * boolean flag = Pattern.matches(string, str);
		 * 
		 * System.out.println(flag);
		 * 
		 * System.out.println(str);
		 * 
		 * String string2=JOptionPane.showInputDialog("1111");
		 * 
		 * JOptionPane.showMessageDialog(null, string2);
		 * 
		 * String name=JOptionPane.showInputDialog(null,
		 * "提示信息",JOptionPane.QUESTION_MESSAGE);
		 * 
		 * JOptionPane.showMessageDialog(null,
		 * name,"弹出框的标题",JOptionPane.INFORMATION_MESSAGE);
		 */
		
		double ma=Math.random();
		
		float o=(float) Math.random();
		
		System.out.println(o);
		
		int mint= (int) (ma*100);
		
		switch (mint) {
		case 1: {
			int a =0;
			break;
		}
		case 2:{
			break;
		}
		default:
			throw new IllegalArgumentException("Unexpected value: ");
		}
	}
}
